import http from "@/utils/request";

export default{
    /**
     * 查询列表
     * @param  params 
     * @returns 
     */
    async gettrqList(pageNo,pageSize, approveStatus, startDate, endDate){
        return await http.get("/api/naturalgasconsumptionstatistics/list",{pageNo, pageSize, approveStatus, startDate, endDate});
    },
    /**
    * 添加
    * @returns
    */
    async addtrq(params){
        // console.log(1);
        return await http.post("/api/naturalgasconsumptionstatistics/add",params)
    },
    /**
    * 修改
    * @returns
    */
    async updatetrq(params){
        // console.log(29999999);
        return await http.put("/api/naturalgasconsumptionstatistics/update",params)
    },
    // 上传文件
    async importExcel(myfile) {
        console.log(29999999);
        console.log(myfile.get("myfile"));

        return await http.upload("/api/fileAbout/fileUpload", {myfile});
    },
    // 导入文件
    async batchImportExcel(filePath) {
        console.log(typeof(filePath));
        console.log(filePath.get("filePath"));
        return await http.upload("/api/naturalgasconsumptionstatistics/batchInput", {filePath});
    }
}